package site.qjdb.pojo;

import java.util.Date;
import java.util.List;

/**
 * 	留言
 * 
 * */
public class Comment {
	private Integer commentId; // 留言id
	private Integer gid; // 对应的商品id
	private Goods goods; // 对应的商品
	private User user; // 发布留言的用户
	private String content; // 留言内容
	private Integer likeCount; // 点赞数
	private Integer isDel; // 是否删除，0：未删除，1：已删除
	private Date time; // 发布留言的时间
	private List<Reply> replyList; // 此留言的所有回复
	
	public Comment() {}

	public Integer getCommentId() {
		return commentId;
	}

	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(Integer likeCount) {
		this.likeCount = likeCount;
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public List<Reply> getReplyList() {
		return replyList;
	}

	public void setReplyList(List<Reply> replyList) {
		this.replyList = replyList;
	}

	public Integer getGid() {
		return gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	@Override
	public String toString() {
		return "Comment [commentId=" + commentId + ", gid=" + gid + ", goods=" + goods + ", user=" + user + ", content="
				+ content + ", likeCount=" + likeCount + ", isDel=" + isDel + ", time=" + time + ", replyList="
				+ replyList + "]";
	}

}
